<?php
$contents = file_get_contents('php://input');



$myFile = "/home/luis/testFile.txt";
$fh = fopen($myFile, 'w') or die("can't open file");

fwrite($fh, $contents);

fclose($fh);

echo $contents;
?>
